﻿<%@ Page Title="Домашняя страница" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Default4.aspx.cs" Inherits="_Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <asp:LoginView ID="LoginView1" runat="server" EnableViewState="true">
                    <AnonymousTemplate>
                        Добро пожаловать на курсы SoftServe!

                        [ <a href="~/Account/Login.aspx" ID="HeadLoginStatus" runat="server">Войти</a> ]
                    </AnonymousTemplate>
                    <LoggedInTemplate>
                        Добро пожаловать, <span class="bold">
                        <asp:LoginName ID="HeadLoginName" runat="server" />
                            <a href="Site.master">Site.master</a>
                        </span>!
                        [
                        <asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="Redirect" LogoutText="Выход" LogoutPageUrl="~/"/>
                        ]
                        <div class="clear">
            
                    </LoggedInTemplate>
                </asp:LoginView>

        </div>
    <br />
    <h2>
        All MESSAGEs</h2>
<p>
    <asp:GridView ID="GridView1" runat="server" CssClass="DataWebControlStyle">
        <HeaderStyle CssClass="HeaderStyle" />
        <AlternatingRowStyle CssClass="AlternatingRowStyle" />
    </asp:GridView>
</p>
            <p>
                </p>



      
        
          <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
              ConnectionString="<%$ ConnectionStrings:SevTwitterConnectionString %>" 
              SelectCommand="SELECT * FROM [messages]"></asp:SqlDataSource>
        
    </div>
</asp:Content>
